﻿using System;

namespace NetPs.Socket
{
    public static partial class SocketHepler
    {
        /// <summary>
        /// 放置数据
        /// </summary>
        /// <remarks>
        /// 放置全部数据。offset: 0
        /// </remarks>
        public static void SetData(IPacket packet, byte[] data) => packet.SetData(data, 0);

        /// <summary>
        /// 校验
        /// </summary>
        /// <remarks>
        /// 校验全部数据。offset: 0
        /// </remarks>
        public static bool Verity(IPacket packet, byte[] data) => packet.Verity(data, 0);
    }
}